package com.fowo.api.service.handleWork;

import com.fowo.api.costAccounting.service.CostAccountingService;
import com.fowo.api.model.monthly.cost.report.real.MonthlyCostReportRealCarryOverAction;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class MonthlyCostReportRealCarryOver implements MonthlyCostReportRealCarryOverAction {

    @Resource
    private CostAccountingService costAccountingService;

    @Override
    public void run() throws Exception {
        costAccountingService.carryForward();
    }
}
